package com.yincheng.oes.business.model.export.dto;

import com.yincheng.oes.business.util.StringUtil;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;

/**
 * @Author: yangsy
 * @Contact: 446948434@qq.com
 * @Date: 2021/8/29 20:01
 * @Version: 1.0
 * @Description:
 */
public class ExportStudentPaperDTO extends BaseExportWordDTO {

    /**
     * 答卷id
     */
    private String paperResultId;

    /**
     * 试卷名称
     */
    private String paperName;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 得分
     */
    private int score;

    /**
     * 总分
     */
    private int totalScore;

    /**
     * 易错知识点集合
     */
    private List<ExportStudentPaperErrorKnowledgeDTO> errorKnowledgeList;

    /**
     * 题目列表
     */
    private List<ExportStudentPaperQuestionDTO> questions;

    public String getPaperResultId() {
        return paperResultId;
    }

    public void setPaperResultId(String paperResultId) {
        this.paperResultId = paperResultId;
    }

    public String getPaperName() {
        return paperName == null ? StringUtils.EMPTY : StringUtil.transform(paperName);
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getUserName() {
        return userName == null ? StringUtils.EMPTY : StringUtil.transform(userName);
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    public List<ExportStudentPaperErrorKnowledgeDTO> getErrorKnowledgeList() {
        return errorKnowledgeList == null ? new ArrayList<>() : errorKnowledgeList;
    }

    public void setErrorKnowledgeList(List<ExportStudentPaperErrorKnowledgeDTO> errorKnowledgeList) {
        this.errorKnowledgeList = errorKnowledgeList;
    }

    public List<ExportStudentPaperQuestionDTO> getQuestions() {
        return questions == null ? new ArrayList<>() : questions;
    }

    public void setQuestions(List<ExportStudentPaperQuestionDTO> questions) {
        this.questions = questions;
    }
}
